package com.settlement.system.controller;


import com.settlement.system.model.entity.common.InternetShopConfig;
import com.settlement.system.service.IBaseService;
import com.settlement.system.service.InternetShopConfigService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @author
 */
@RestController
@RequestMapping(value = "internet_shop_config")
public class InternetShopConfigController extends BaseController<InternetShopConfig> {
    @Autowired
    private InternetShopConfigService internetShopConfigService;

    @Override
    public IBaseService init() {
        return internetShopConfigService;
    }

    @GetMapping("/getAllInternetShop.ig")
    @ResponseBody
    public List<InternetShopConfig> getAllInternetShop() {
        return internetShopConfigService.getAllInternetShop();
    }
}
